﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the GNU General Public License version 2 (GPLv2).
// See accompanying file License.txt or copy at http://phuse.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Phuse.Net.Forums
{
    using System.Data.Linq.Mapping;

    /// <summary>Contains the LINQ to SQL definition for the INFORMATION_SCHEMA.COLUMNS table.</summary>
    [Table(Name = "INFORMATION_SCHEMA.COLUMNS")]
    internal sealed class SchemaColumn
    {
        [Column(Name = "TABLE_NAME")]
        internal string TableName { get; private set; }

        [Column(Name = "COLUMN_NAME")]
        internal string ColumnName { get; private set; }

        [Column(Name = "CHARACTER_MAXIMUM_LENGTH")]
        internal int? CharacterMaxLength { get; private set; }
    }
}
